<h1>Listing profiles</h1>

<table>
  <tr>
    <th>Nameth</th>
    <th>Lastnameth</th>
    <th>Nameeng</th>
    <th>Nickname</th>
    <th>Generation</th>
    <th>Birthday</th>
    <th>Nationality</th>
    <th>Religious</th>
    <th>Socialstatus</th>
    <th>Studystatus</th>
    <th>Address</th>
    <th>Telphone</th>
    <th>Celphone</th>
    <th>Email</th>
    <th>Blogaddress</th>
  </tr>

<% @profiles.each do |profile| %>
  <tr>
    <td><%=h profile.nameth %></td>
    <td><%=h profile.lastnameth %></td>
    <td><%=h profile.nameeng %></td>
    <td><%=h profile.nickname %></td>
    <td><%=h profile.generation %></td>
    <td><%=h profile.birthday %></td>
    <td><%=h profile.nationality %></td>
    <td><%=h profile.religious %></td>
    <td><%=h profile.socialstatus %></td>
    <td><%=h profile.studystatus %></td>
    <td><%=h profile.address %></td>
    <td><%=h profile.telphone %></td>
    <td><%=h profile.celphone %></td>
    <td><%=h profile.email %></td>
    <td><%=h profile.blogaddress %></td>
    <td><%= link_to 'Show', profile %></td>
    <td><%= link_to 'Edit', edit_profile_path(profile) %></td>
    <td><%= link_to 'Destroy', profile, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'ข้อมูลประวัติใหม่', new_profile_path %>
